// ActionScript file
import flash.events.KeyboardEvent;

import enums.HotKeys;

private function checkHotKeys(event:KeyboardEvent):void{
	if (event.ctrlKey && event.keyCode == HotKeys.S){
		save(event);
	}
}

private function save(event:KeyboardEvent=null):void{
	switch(main.selectedChild){
		case chapterEditor:
			if (event) event.preventDefault();
			chapterEditor.save();
		break;
		case characterEditor:
			if (event) event.preventDefault();
			characterEditor.save();
		break;
	}
	
	  
}